<?php

function GetLastContests($count = 5)
{
	$lastc = file_get_contents($mcrp . 'config/lastcontests');
	$lastc = explode(' ', $lastc);
	$max = count($lastc);
	$contests = array();
	for($i = 0; $i<(min($count, $max); $i++)
	{
		$contests[i] = GetContestById($lastc[i]);
	}
	return $contests;
}

?>